package com.yunji.cabinet.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yunji.common.annotation.Excel;
import com.yunji.common.base.BaseDO;
import com.yunji.common.base.BaseDelFlagDO;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

;import java.io.Serializable;

/**
 * @Project: yunji-coffee
 * @Package com.yunji.cabinet.domain
 * @FileName BindCode.java
 * @Copyright Copyright © 2024 云集互联. All Rights Reserved
 * Company		com
 * @version 1.0
 * @since JDK 1.8.0_202
 * @CreateTime 2024-03-30 16:03:37
 * @Description 二维码芯片绑定信息
 * @Modification Author                    History Time			Version				Description
 * --------------------------------------------------------------------------------
 * HuaAo				2024-03-30 16:03:37		1.0					1.0 Version
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tr_device_bind")
public class DeviceBindDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = -340735726599341941L;
    @ApiModelProperty("主键ID")
    @Excel(name = "主键ID")
    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("imei")
    @Excel(name = "imei")
    private String imei;

    @ApiModelProperty("sn")
    @Excel(name = "sn")
    private String sn;

    @ApiModelProperty("二维码")
    @Excel(name = "二维码")
    private String qrCode;

    @ApiModelProperty("绑定状态 (0-未绑定 1-已绑定")
    @Excel(name = "绑定状态 (0-未绑定 1-已绑定)")
    private Integer bindStatus;


    public DeviceBindDO(String imei, String qrCode, String sn) {
        this.imei = imei;
        this.qrCode = qrCode;
        this.sn = sn;
    }
}
